package day3

trait Person22 {
  val eyeNum:Int=2
  def getEye = eyeNum
}
class Student22(val name:String) extends Person22{
  //val eyeNum:Int=20
  def sayHello()=println("Hi,I'm "+name +"I have "+eyeNum+"eyes !" )

  override def getEye: Int = eyeNum

  def judge:Boolean={
    //super.eyeNum = 60;
    true
  }

}
object Test666{
  def main(args: Array[String]) {
    val s=new Student22("zhangsanfeng")
    s.sayHello()
    println(s.getEye)
    println(s.judge)
  }
}
